package org.jeecg.modules.engineering.service;

import org.jeecg.common.api.vo.Result;
import org.jeecg.modules.engineering.entity.EquipEventSortDetail;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * @Description: 每个小区的事件分类
 * @Author: jeecg-boot
 * @Date:   2019-09-11
 * @Version: V1.0
 */
public interface IEquipEventSortDetailService extends IService<EquipEventSortDetail> {


    void saveWithRedis(EquipEventSortDetail entity);

    boolean updateWithRedis(EquipEventSortDetail entity);

    void removeWithRedis(String id);

    void removeFromRedis(String id);

    void removeFromRedis(EquipEventSortDetail entity);

    EquipEventSortDetail getFromRedisByOtherKey(String key);

    EquipEventSortDetail getFromRedisById(String id);

    Result<String> refreshToRedis();

    List<EquipEventSortDetail> queryListByProjectId(String projectId);

    void batchRemoveWithRedis(List<String> ids);

    boolean checkHave(String projectId, String eventId, String id);
}
